package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.SysDownlog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysTopicDownlogMapper;
import com.ruoyi.system.domain.SysTopicDownlog;
import com.ruoyi.system.service.ISysTopicDownlogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class SysTopicDownlogServiceImpl implements ISysTopicDownlogService 
{
    @Autowired
    private SysTopicDownlogMapper sysTopicDownlogMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param logid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysTopicDownlog selectSysTopicDownlogByLogid(Long logid)
    {
        return sysTopicDownlogMapper.selectSysTopicDownlogByLogid(logid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysTopicDownlog 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysTopicDownlog> selectSysTopicDownlogList(SysTopicDownlog sysTopicDownlog)
    {
        return sysTopicDownlogMapper.selectSysTopicDownlogList(sysTopicDownlog);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysTopicDownlog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysTopicDownlog(SysTopicDownlog sysTopicDownlog)
    {
        return sysTopicDownlogMapper.insertSysTopicDownlog(sysTopicDownlog);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysTopicDownlog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysTopicDownlog(SysTopicDownlog sysTopicDownlog)
    {
        return sysTopicDownlogMapper.updateSysTopicDownlog(sysTopicDownlog);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param logids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysTopicDownlogByLogids(String logids)
    {
        return sysTopicDownlogMapper.deleteSysTopicDownlogByLogids(Convert.toStrArray(logids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param logid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysTopicDownlogByLogid(Long logid)
    {
        return sysTopicDownlogMapper.deleteSysTopicDownlogByLogid(logid);
    }
    @Override
    public List<SysTopicDownlog> selectSysDownlogListleftjoin(SysTopicDownlog sysTopicDownlog)
    {
        return sysTopicDownlogMapper.selectSysDownlogListleftjoin(sysTopicDownlog);
    }
    @Override
    public  void increaseDowncount(Long logid)
    {
        sysTopicDownlogMapper.increaseDowncount(logid);
    }
}
